package com.tantinevincent.process;

import java.util.ArrayList;
import java.util.List;

import com.tantinevincent.formatter.IFormatter;
import com.tantinevincent.vector.LabeledVector;

public class FormatProcess {
	
	private IFormatter formatter;
	
	public FormatProcess(IFormatter formatter){
		this.formatter = formatter;
	}
	public List<String> format(List<LabeledVector> vectors){
		List<String> formattedContexts = new ArrayList<String>();
		for( LabeledVector vector : vectors ){
			String s = formatter.format(vector, vector.getLabel());
			formattedContexts.add(s);
		}
		return formattedContexts;
	}
}
